const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
    transpileDependencies: true,
    devServer: {
        proxy: {
            "/che":{
                target:'http://localhost:5001',
                changeOrigin:true,
                pathRewrite:{
                    "^/che":""
                }
            },
            //    /che/cars  ==> http://localhost:8080/che/cars ==> 404 ==> http://localhost:5001/che/cars ==> http://localhost:5001/cars
            "/xuesheng":{
                target:'http://localhost:5000',
                changeOrigin:true,
                pathRewrite:{
                    "^/xuesheng":''
                }
            }
        }
    }
})
